#ifndef DEQUEUER_H_
#define DEQUEUER_H_

#include <string>
#include <string.h>
#include <sstream>

#include "MsgQueue.h"
#include "Message_Queue.h"

class Dequeuer {

	private:
		Message_Queue<messageQueue>* cola;
		messageQueue msg;

	public:
		Dequeuer( const std::string& file, const char key );
		~Dequeuer();

		int dequeue (const int type);
		messageQueue get_message ();

		void cerrar();

};

#endif /* DEQUEUER_H_ */
